package com.app.scale.bean;

import android.text.TextUtils;

import com.alibaba.fastjson.annotation.JSONField;

public class RecordListData extends BasisBean {


    /**
     *      {
     *         "tid": "2111290001",
     *         "aid": "3",
     *         "tdt": "2021-11-29",
     *         "wno": "582ffc1f1d7d8be",
     *         "cno": "10001",
     *         "cna": "测试10001",
     *         "uno": "3001",
     *         "una": "张三",
     *         "jno": "3002",
     *         "jna": "李四",
     *         "tje": 87.6,
     *         "afn": "未审核",
     *         "lgt": null,
     *         "lat": null,
     *         "addr": null,
     *         cht :身份证
     *         "tra": 33344.58
     *       }
     */

    private static final long serialVersionUID = 1L;


    @JSONField(name = "tid")
    private String tid;
    @JSONField(name = "tdt")
    private String tdt;
    @JSONField(name = "wno")
    private String wno;
    @JSONField(name = "cno")
    private String cno;
    @JSONField(name = "cna")
    private String cna;
    @JSONField(name = "una")
    private String una;
    @JSONField(name = "jno")
    private String jno;
    @JSONField(name = "jna")
    private String jna;
    @JSONField(name = "tje")
    private double tje;
    @JSONField(name = "afn")
    private String afn;
    @JSONField(name = "addr")
    private String addr;
    @JSONField(name = "tra1")
    private String tra1;
    @JSONField(name = "tra2")
    private String tra2;
    @JSONField(name = "tra3")
    private String tra3;
    @JSONField(name = "cht")
    private String cht;
    @JSONField(name = "bno")
    private String bno;


    public String getCht() {
        if(TextUtils.isEmpty(cht)){
            return "";
        }
        return cht;
    }

    public void setCht(String cht) {
        this.cht = cht;
    }


    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public String getTdt() {
        return tdt;
    }

    public void setTdt(String tdt) {
        this.tdt = tdt;
    }

    public String getWno() {
        return wno;
    }

    public void setWno(String wno) {
        this.wno = wno;
    }

    public String getCno() {
        return cno;
    }

    public void setCno(String cno) {
        this.cno = cno;
    }

    public String getCna() {
        return cna;
    }

    public void setCna(String cna) {
        this.cna = cna;
    }

    public String getUna() {
        return una;
    }

    public void setUna(String una) {
        this.una = una;
    }

    public String getJno() {
        return jno;
    }

    public void setJno(String jno) {
        this.jno = jno;
    }

    public String getJna() {
        return jna;
    }

    public void setJna(String jna) {
        this.jna = jna;
    }

    public double getTje() {
        return tje;
    }

    public void setTje(double tje) {
        this.tje = tje;
    }

    public String getAfn() {
        return afn;
    }

    public void setAfn(String afn) {
        this.afn = afn;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getTra1() {
        return tra1;
    }

    public void setTra1(String tra1) {
        this.tra1 = tra1;
    }

    public String getTra2() {
        return tra2;
    }

    public void setTra2(String tra2) {
        this.tra2 = tra2;
    }

    public String getTra3() {
        return tra3;
    }

    public void setTra3(String tra3) {
        this.tra3 = tra3;
    }

    public String getAutoBno(){
        if(TextUtils.isEmpty(getBno()) || "null".equals(getBno())) return null;
        return "http://www.fdbcdsj.cn:8880/QRHome/Scan/"+getBno();
    }

    public String getBno() {
        return bno;
    }

    public void setBno(String bno) {
        this.bno = bno;
    }
}
